<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:set var="adminEdit" value="${!empty param.adminEdit && adminEdit }" />

<form method="POST" class="form-horizontal">
	<input type="hidden" name="edit_userid" id="edit_userid"/>
	<div class="modal hide fade" id="editUserModal">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">&times;</button>
			<h3>
				<span id="headTitle"></span>
			</h3>
		</div>
		<div class="modal-body">
			<div class="control-group">
				<label class="control-label" for="edit_lastname">Vezetéknév</label>
				<div class="controls">
					<input type="text" id="edit_lastname" name="edit_lastname" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="edit_firstname">Keresztnév</label>
				<div class="controls">
					<input type="text" id="edit_firstname" name="edit_firstname" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="edit_city">Város</label>
				<div class="controls">
					<c:choose>
						<c:when test="${adminEdit }">
							<span id="citySelectSpan"> </span>
						</c:when>
						<c:otherwise>
							<jsp:include page="_citySelect.jsp">
								<jsp:param value="edit_city" name="name" />
								<jsp:param value="${param.selectedCity }" name="selected" />
							</jsp:include>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="edit_address">Cím</label>
				<div class="controls">
					<input type="text" id="edit_address" name="edit_address" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="edit_password">Új jelszó
					megadása</label>
				<div class="controls">
					<input type="password" id="edit_password" name="edit_password" autocomplete="off" value=""/>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<div class="btn-group">
				<input type="submit" class="btn btn-primary" value="Szerkesztés"
					id="editSubmitButton"> <a href="#" class="btn"
					data-dismiss="modal">Bezárás</a>
			</div>
		</div>
	</div>
</form>